package com.monkey.algorithm.chapter1.accumulator

import edu.princeton.cs.algs4.StdRandom
import org.junit.Test

/**
 * 作者：Monkey
 * 日期：2018/1/27
 */
class VisualAccumulatorTest {

    @Test
    fun simpleTest() {
        val trials = 1000
        val accumulator = VisualAccumulator(trials, 1.0)
        for (i in 0..trials) {
            accumulator.addDataValue(StdRandom.uniform())
        }
    }
}